package fun.codefarmer.pm.utils.fileUtil;

import java.util.Date;
import java.util.UUID;

/**
 * @Author z
 * @Date 2021/11/22 17:25
 * @Version 1.0
 */
public class UUIDUtils {
    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String random() {
        long time = new Date().getTime();
        int ran=(int) ((Math.random()*9+1)*10000);
        String s2 = String.valueOf(ran);
        String s1 = String.valueOf(time);
        StringBuilder sb = new StringBuilder(s1);
        sb.append(s2);
        return sb.toString();
    }

}
